
#include "registry_storage.h"

#include "property.h"

registry_storage::registry_storage():
	properties_()
{}

registry_storage::~registry_storage()
{}

void
registry_storage::add(const key_t& key, const value_t& value)
{
	properties_.push_back( property(key, value) );
}

const registry_storage::value_t*
registry_storage::get(const value_t& key) const
{
	for(container_t::const_iterator i = properties_.begin();
	    i != properties_.end();
	    i++)
	{
		if(i->key() == key)
			return &(i->value());
	}

	return 0x0;
}
